package com.changzhi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.changzhi.ldyl.model.ActivityCard;
import com.changzhi.ldyl.model.vo.CarnivalCardVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 活动卡牌表 Mapper 接口
 * </p>
 *
 * @author huangrc
 * @since 2020-12-25
 */
public interface ActivityCardMapper extends BaseMapper<ActivityCard> {

	List<ActivityCard> selectListByMaxLevel(@Param("activityId") Integer activityId, @Param("channelId") String channelId);

	ActivityCard selectInfoByMaxLevel(@Param("activityId") Integer activityId, @Param("channelId") String channelId);

	Integer selectMaxLevel(@Param("activityId") Integer activityId, @Param("channelId") String channelId,@Param("status") Integer status);

	Page<CarnivalCardVo> selectGroupPage(IPage<?> page, @Param("activityId") Integer activityId);


	Page<CarnivalCardVo> selectGroupChannelCount(IPage<?> page,@Param("activityId")  Integer activityId);
}
